package ui;

import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.*;

public class PreviewWindowListener extends WindowAdapter {
	public void windowClosing(WindowEvent e) {
		JFrame frame = (JFrame)(e.getWindow());
		frame.dispose();
	}
}